package com.example.hello;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class KeyboardViewActivity extends AppCompatActivity implements View.OnClickListener{

    EditText mEditText;
    Button mButton;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_keyboard_view);
        mEditText=(EditText)findViewById(R.id.editText);
        mEditText.setText("请选择SimpleIME输入法");
        mButton=(Button)findViewById(R.id.button);
        mButton.setOnClickListener(this);


    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.button:
                NewsActivity.goToNewsActivity(KeyboardViewActivity.this);

                break;
        }
    }
}
